package com.yanqu.road.entity.crossorewar;

import com.alibaba.fastjson.JSON;
import com.yanqu.road.entity.player.UserBaseInfo;

/**
 * 矿战记录
 */
public class CrossOreWarNotice {

	private String noticeUid;

	private int activityId;

	private int pitId;

	private long noticeTime;

	private long userId;

	private long serverId;

	private UserBaseInfo userBaseInfo = new UserBaseInfo();

	private long enemyUserId;

	private UserBaseInfo enemyBaseInfo = new UserBaseInfo();

	private int groupId;

	public String getNoticeUid() {
		return noticeUid;
	}

	public void setNoticeUid(String noticeUid) {
		this.noticeUid = noticeUid;
	}


	public int getActivityId() {
		return activityId;
	}

	public void setActivityId(int activityId) {
		this.activityId = activityId;
	}

	public int getPitId() {
		return pitId;
	}

	public void setPitId(int pitId) {
		this.pitId = pitId;
	}

	public long getNoticeTime() {
		return noticeTime;
	}

	public void setNoticeTime(long noticeTime) {
		this.noticeTime = noticeTime;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public long getServerId() {
		return serverId;
	}

	public void setServerId(long serverId) {
		this.serverId = serverId;
	}

	public UserBaseInfo getUserBaseInfo() {
		return userBaseInfo;
	}

	public String getUserBaseInfoJsonStr(){
		if(null == userBaseInfo){
			return "{}";
		}else {
			return JSON.toJSONString(userBaseInfo);
		}
	}

	public void setUserBaseInfo(UserBaseInfo userBaseInfo) {
		this.userBaseInfo = userBaseInfo;
	}

	public long getEnemyUserId() {
		return enemyUserId;
	}

	public void setEnemyUserId(long enemyUserId) {
		this.enemyUserId = enemyUserId;
	}

	public UserBaseInfo getEnemyBaseInfo() {
		return enemyBaseInfo;
	}

	public void setEnemyBaseInfo(UserBaseInfo enemyBaseInfo) {
		this.enemyBaseInfo = enemyBaseInfo;
	}

	public String getEnemyBaseInfoJsonStr(){
		if(null == enemyBaseInfo){
			return "{}";
		}else {
			return JSON.toJSONString(enemyBaseInfo);
		}
	}

	public int getGroupId() {
		return groupId;
	}

	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}
}
